package com.matrix.tool.ui.tool.adapter

import android.view.View
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.matrix.basecore.utils.glide.GlideUtil
import com.matrix.tool.R

class CropAdapter(layout: Int, datas: ArrayList<String>, position: Int) :
    BaseQuickAdapter<String, BaseViewHolder>(layout, datas) {
    var position = position
    override fun convert(holder: BaseViewHolder, item: String) {
        GlideUtil.loadImage(item, context, holder.getView(R.id.iv_image), false)
        if (holder.layoutPosition < position) {
            holder.setGone(R.id.iv_tip, false)
        } else {
            holder.setGone(R.id.iv_tip, true)
        }
    }

    class VH(itemView: View) : BaseViewHolder(itemView) {

    }

}